<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.Statement" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.sql.DriverManager" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="edu.sctu.User" %>
<%@ page import="edu.sctu.DataBase" %>
<%--

  Created by IntelliJ IDEA.
  User: 林云志
  Date: 2018/5/15
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<style type="text/css">
    table {
        border-collapse: collapse;
    }

    td {
        border: 1px solid #000;
        padding: 10px;
    }
</style>


    <table>

        <tr>
            <td>密码</td>
            <td>操作</td>
            <td>姓名</td>
            <td>操作一</td>
            <td>操作二</td>
        </tr>

        <c:forEach var="user" items="${list}">
            <tr>

                <td>${user.id}</td>
                <td>${user.name}</td>
                <td>${user.password}</td>
                <td>添加</td>
                <td>更新</td>
                <td>删除</td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>
